package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TableConstraintDefinition implements TableConstraint, TableElement {

    private int beginIndex;
    private int endIndex;
    private ConstraintNameDefinition constraintNameDefinition;
    private TableConstraint tableConstraint;
    private ConstraintCharacteristics constraintCharacteristics;

    public TableConstraintDefinition(int beginIndex,
                                     int endIndex,
                                     ConstraintNameDefinition constraintNameDefinition,
                                     TableConstraint tableConstraint,
                                     ConstraintCharacteristics constraintCharacteristics) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.constraintNameDefinition = constraintNameDefinition;
        this.tableConstraint = tableConstraint;
        this.constraintCharacteristics = constraintCharacteristics;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ConstraintNameDefinition getConstraintNameDefinition() {
        return constraintNameDefinition;
    }

    public TableConstraint getTableConstraint() {
        return tableConstraint;
    }

    public ConstraintCharacteristics getConstraintCharacteristics() {
        return constraintCharacteristics;
    }

}
